package com.hudomju.swipe.sample;

import com.hudomju.swipe.interfaces.BaseModal;

import org.junit.Test;
import static org.junit.Assert.assertEquals;

/**
 * 单元测试类
 */
public class ExampleOhosTest {
    /**
     * 测试getIndex方法
     */
    @Test
    public void testBaseIndex() {
        BaseModal baseModalItem = new BaseModal("This is row number 1", false);
        assertEquals(baseModalItem.getIndex(), "This is row number 1");
    }

    /**
     * 测试getShowBack方法
     */
    @Test
    public void testBaseShowBack() {
        BaseModal baseModalItem = new BaseModal("This is row number 1", true);
        assertEquals(baseModalItem.getShowBack(), true);
    }
}